package com.student.service;

import com.student.entity.User;

import java.io.Serializable;
import java.util.List;
import java.util.Set;

/**
 * Created by zhudong on 2016/9/25.
 */
public interface ManageService {
    void save(Class cc, Object o);

    void delete(Class cc, Serializable id);

    void update(Class cc, Object o);

    Object get(Class cc, Serializable id);

    List<?> getAll(Class cc);

    User getUserByUsername(String username);

    Set<String> findRolesByUsername(String username);

    Set<String> findPermissionsByUsername(String username);
}
